home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Hyper
/
Me-Mz
/
MegaSort Stack.cpt
/
MegaSort Stack
/
card_3801.txt
< prev
next >
Wrap
Text File
|
1990-12-13
|
2KB
|
111 lines
-- card: 3801 from stack: in
-- bmap block id: 0
-- flags: 4000
-- background id: 2571
-- name: Demo1
-- part 1 (field)
-- low flags: 01
-- high flags: 0001
-- rect: left=308 top=112 right=244 bottom=502
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 256
-- line height: 16
-- part name:
-- part 2 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=333 top=28 right=50 bottom=433
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Ascending
----- HyperTalk script -----
on mouseUp
Put "megaSort(fld unsorted,tab,return," & quote & "t=d,d=a" & quote & ") into fld sorted" into fld command
Put megasort(fld unsorted,tab,return,"t=d,d=a") into fld sorted
end mouseUp
-- part 3 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=332 top=59 right=81 bottom=432
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Descending
----- HyperTalk script -----
on mouseUp
Put "megaSort(fld unsorted,tab,return," & quote & "t=d,d=d" & quote & ") into fld sorted" into fld command
Put megasort(fld unsorted,tab,return,"t=d,d=d") into fld sorted
end mouseUp
-- part 5 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=428 top=257 right=313 bottom=506
-- title width / last selected line: 0
-- icon id / first selected line: 1020 / 1020
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Notes on Dates
----- HyperTalk script -----
on mouseUp
push card
visual effect dissolve
go to card id 8178
end mouseUp
-- part contents for background part 4
----- text -----
jun 14, 1989
06/13/89
1989,6,30,13,12,12,7
2696457600
wednesday, June 15, 1989
-- part contents for background part 5
----- text -----
2696457600
06/13/89
jun 14, 1989
wednesday, June 15, 1989
1989,6,30,13,12,12,7
-- part contents for background part 6
----- text -----
megaSort(fld unsorted,tab,return,"t=d,d=a") into fld sorted
-- part contents for card part 1
----- text -----
Clicking on the above buttons will show how megaSort can sort dates in any standard format.
Note:
2696457600 is 6/12/89 in seconds.